package com.api.shopapi.service.impl;

import com.api.shopapi.entity.ElderlyClockinMonth;
import com.api.shopapi.mapper.ElderlyClockinMonthMapper;
import com.api.shopapi.service.ElderlyClockinMonthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service("ElderlyClockinMonthServiceImplOne")
public class ElderlyClockinMonthServiceImpl implements ElderlyClockinMonthService {

    @Autowired
    ElderlyClockinMonthMapper elderlyClockinMonthMapper;

    @Override
    public
    int insert(ElderlyClockinMonth elderlyClockinMonth){
        return elderlyClockinMonthMapper.insert(elderlyClockinMonth);
    }

    @Override
    public
    int batchInsert(List<ElderlyClockinMonth> elderlyClockinMonth){
        return elderlyClockinMonthMapper.batchInsert(elderlyClockinMonth);
    }

    @Override
    public
    ElderlyClockinMonth getByElderlyCodeMonth(String elderlyCode, Date month){
        return elderlyClockinMonthMapper.getByElderlyCodeMonth(elderlyCode,month);
    }

    @Override
    public
    List<ElderlyClockinMonth> getListByElderlyCode(String elderlyCode){
        return elderlyClockinMonthMapper.getListByElderlyCode(elderlyCode);
    }


    @Override
    public List<ElderlyClockinMonth> getPageByElderlyCode(String elderlyCode){
        return elderlyClockinMonthMapper.getListByElderlyCode(elderlyCode);
    }


}
